package com.shixulin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shixulin.entity.UserAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (UserAnswer)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-17 18:05:53
 */
@Mapper
@Repository
public interface UserAnswerMapper extends BaseMapper<UserAnswer> {


    int saveUserAnswer(List<UserAnswer> userAnswer);

    List<UserAnswer> getUserAnswer(@Param("userId") int userId, @Param("paperId") int paperId, @Param("examStatus") int examStatus);
}
